home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / mgraph / makefile < prev    next >
Makefile  |  1994-03-22  |  846b  |  45 lines

  1. ##    Makefile for graphics routines.
  2. ##    R. Gonzalez 4/93. (Based on example by Don Snow.)
  3. ##    Requires g++ (though only ANSI C is used) and XWindow system.
  4. ##
  5. ##    Substitute your filename(s) for pendulum.o, below. Be sure to
  6. ##    name source files: *.cc
  7. ##
  8. ##    Options: 'make graph' to compile, 'make clean' to
  9. ##    remove object files.
  10. ##
  11. ##    -g = Debugging info
  12. ##    -O = Optimize 
  13. ##
  14. OPTFLAGS=     -O\
  15. ##
  16. ##
  17. CCFLAGS=     $(OPTFLAGS)\
  18.         -I/usr/local/X11/include
  19. ##
  20. CCC=    g++
  21. ##
  22. ##    Libraries
  23. ##    X11     X11 graphics library
  24. ##
  25. LIBS=    -L/usr/local/X11/lib -lX11 -lm
  26. ##
  27. ##
  28. GRAPH_OBJECTS =     xgraph.o trans.o
  29. ##
  30. EXEC1=        graph
  31. ##
  32. EXEC1_OBJECTS=    $(GRAPH_OBJECTS) pendulum.o
  33. ##
  34. ##
  35. .KEEP_STATE:
  36. ##
  37. ##
  38. ## Commands to compile and link objects together
  39. ##
  40. $(EXEC1):    $(EXEC1_OBJECTS) 
  41.         g++ -o $(EXEC1) $(EXEC1_OBJECTS) $(LIBS)
  42. ##
  43. clean:
  44.         rm -f $(GRAPH_OBJECTS) $(EXEC1_OBJECTS)
  45.